<?php
	
	//include '../../operations/connection.php';


	$q=$_GET['q'];
	$my_data=mysql_real_escape_string($q);

	$sql="select ac_customer.CustomerName from ac_customer where ac_customer.CustomerName like '".$my_data."%' and ac_customer.Activest=1";
	$result = mysqli_query($mysqli,$sql) or die(mysqli_error());
	
	if($result)
	{
		while($row=mysqli_fetch_array($result))
		{
			echo $row['CustomerName']."\n";
		}
	}
?>